import axios from '@/utils/http.js'

// 获取留言(未登录)
export const getLeavewordListAPI = (params) => axios.get('/leaveword/list', { params })

// 获取留言(已登录)
export const getLeavewordListAuthAPI = (params) => axios.get('/leaveword/auth/list', { params })

// 添加留言
export const createLeavewordAPI = (data) => axios.post('/leaveword', data)

// 添加/删除反馈
export const addOrDelFeedbackAPI = (data) => axios.post('/feedback', data)

// 查询反馈
export const getFeedbackAPI = (params) => axios.get('/feedback', { params })
